package com.springboot.learning.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created by MK12226 on 2017/7/20.
 */
@Controller
public class JspController {
    private static String hello="TonyWoo jspTest ok!";
    @RequestMapping(value="jspview")
    public String jspView(Map<String,Object> map){
        System.out.println("HelloController.helloJsp().hello=" + hello);
        map.put("hello", hello);
        return "jspTest";
    }
}
